home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0574.ZIP
/
FTELL.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-10-21
|
369b
|
23 lines
include compiler.inc
ttl ftell, 1.05, 10-21-86, jwk
dseg
cseg
xtfs <lseek, $strhand>
; long ftell(stream) FILE *stream;
; { return lseek(hdl(stream),0L,1);
; }
procdef ftell, <<stream,ptr>>
callit $strhand, <<stream,ptr>>
xor bx,bx
mov cx,1
callit lseek, <<cx, reg>, <bx, reg>, <bx, reg>, <ax, reg>>
pret
pend ftell
finish